Timing response-based clock frequency offset estimation method for industrial wireless sensor network

ABSTRACT

The present invention relates to a method for estimating clock frequency offsets of industrial wireless sensor networks based on timing response. In the method, a data packet is sent from a node to be synchronized to a reference node. After the reference node receives the data packet, it replies an acknowledgement after a timing response interval, which is mapped according to a sequence number of the data packet. After communication and interaction for multiple times, a relative frequency offset and a fixed delay between node clocks can be estimated by the node to be synchronized without exchanging timestamp information. The present invention does not need to receive or send messages specially used for time synchronization parameter estimation, which realizes a long-term tracking of clock frequency offset with a low computation cost and reduces communication overhead and energy consumption.

FIELD OF INVENTION

The present invention belongs to the technical field of wireless sensor networks, which relates to a method for estimating timing response clock frequency offsets applicable to industrial wireless sensor networks.

BACKGROUND ART OF THE INVENTION

A wireless sensor network is composed of a plurality of cheap and tiny sensor nodes which are distributed in space and have limited calculation ability, storage capacity and energy. All nodes operate on their own independent clocks. Because of the characteristics such as flexible deployment and low cost, wireless sensor networks have been widely used in many fields such as industry. Most of the traditional industrial networks adopt a wired connection mode, which limits the deployment flexibility and the intelligent control of an industrial process. Based on the advantages of wireless sensor networks, industrial wireless sensor networks emerge as the industries require. Wireless micro sensor nodes are deployed on many industrial field devices and are responsible for collecting industrial environmental data and industrial process data, and a large number of sensor nodes operate cooperatively to realize a high-efficient, flexible and intelligent industrial process. A complex industrial field environment leads to high requirements for reliability, real-time performance and low power consumption of industrial wireless sensor networks. Currently, ISA100.11a and other wireless sensor network standards specially used for industrial field environment have been established.

Time synchronization technology is an important supporting technology for the application of the industrial wireless sensor networks and different nodes are required to operate on a common time scale in the practical application of the industrial wireless sensor networks. Consider that clock frequency offset is a main factor causing synchronization errors among the nodes, therefore it is important for the industrial wireless sensor network to obtain clock frequency offset parameters of the nodes. The existing methods for estimating clock frequency offsets usually need dedicated synchronization messages and timestamp information exchange during transmission, thereby causing relatively large synchronization overhead.

Aiming at the above problems, the present invention provides a relative clock frequency estimation method based on timing response for industrial wireless sensor networks with a time slot mechanism. By embedding the implementation of frequency offset estimation into the sending and acknowledgement (ACK) processes of ordinary data packets, long-term tracking of frequency offsets can be realized without transmitting special time synchronization messages and timestamp information. Moreover, the possibility of timestamp attack is avoided, synchronization overhead of resource-limited industrial wireless sensor networks is reduced, thus improving the synchronization safety.

DISCLOSURE OF THE INVENTION

In view of this, the purpose of the present invention is to provide a method for estimating clock frequency offsets of industrial wireless sensor networks based on timing response, which does not need dedicated data frames to exchange timestamp information between synchronization nodes. The nodes can realize long-term smooth tracking of clock synchronization frequency offsets during transmission of network data packets, and more accurate clock frequency offsets are obtained with a low cost. Therefore, the present invention reduces the number of transmission messages in the network and the communication overhead of resource-limited nodes. In addition, this present invention avoids the potential possibility of timestamp message attack during time synchronization exchange, and thus improves the safety and reliability of the network.

To achieve the above purpose, the present invention provides the following technical solution:

A method for estimating clock frequency offsets of industrial wireless sensor networks based on timing response, which does not need additional communication bandwidth specially used for clock synchronization parameter estimation to transmit the message specially used for time synchronization in a wireless sensor network, and does not need timestamp exchange between nodes. When an arbitrary node S to be synchronized in the network needs to realize synchronization with a reference node R, two-way communication between the nodes is carried out in a communication mode of one-way data packet+ACK.

A time synchronization algorithm is performed along with data sending and receiving of a sending node S. It is assumed that the node S sends a data packet to the reference node R at its local time T_(1,i) ^((S)), the reference node R receives the data packet after a period of time, the period of time is mainly influenced by a fixed time delay d₁ and a random time delay X_(i) during data packet transmission. The reference node R receives a message the data packet message sent by the node S at its local time T_(2,i) ^((R)), and returns an acknowledgement message at its local time T_(3,i) ^((R)) after a timing response interval w_(i). Here, timing response intervals corresponding to different data packets are calculated in a mode of sequence numbers modulo i(i≥2) according to different sequence numbers Seq of the data packets in the network. Specifically, when the sequence number Seq % i=0, ACK is returned after a timing response interval w₁; when the sequence number Seq % i=1, ACK is returned after a timing response interval w₂; when the sequence number Seq % i=2, ACK is returned after a timing response interval w₃; . . . ; when Seq % i=i−2, ACK is returned after a timing response interval w_(i-1); and when Seq % i=i−1, ACK is returned after a timing response interval w₁, (both a receiver and a sender know corresponding calculation rules in advance, and wait according to the rules). At the time T_(3,i) ^((R)), an ACK message is returned from the reference node R to the node S, and a time) T_(4,i) ^((R)) when a response message is received is recorded by the node S. It should be noted that in this process, the timestamp information of each sending or receiving time is not carried in exchanged data frames. The above process is repeated. After N times of message exchange, the sending node S can obtain a group of local timestamps {T_(1,i) ^((s)), T_(4,i) ^((s))}_(i=1) ^(N), and similarly, the node R can obtain a group of local timestamps) {T_(2,i) ^((R)),T_(3,i) ^((R))}_(i=1) ^(N) Combined with the different timing response intervals w_(i), of the node R, a frequency offset between the nodes and the fixed delay during transmission can be estimated by a statistical signal processing method.

The method for estimating clock frequency offsets specifically comprises the following steps:

S1: the estimation of clock frequency offset is performed along with data packet sending and receiving of the nodes, assuming that the node S to be synchronized sends a data packet to the reference node R at a local time T_(1,i) ^((S)), and records the sending time T_(1,i) ^((s)); S2: as crystal oscillators of the node R and the node S have different frequencies, if f_(R) represents a crystal oscillator frequency of the node R, and f_(s) represents a crystal oscillator frequency of the node S, the reference node R records a local time T_(2.1) ^((R)) when receiving a data frame sent by the node S; as influenced by a fixed delay d₁ during data packet transmission and a random delay X_(i) in an uplink, it can be obtained that T _(2,i) ^((R)) =α×T _(1,i) ^((S))+θ₁₀+α×(d ₁ +X _(i)) wherein

$\alpha = \frac{f_{R}}{f_{S}}$ represents clock frequency offset of the node S relative to the node R, θ_(t) ₀ represents initial phase offset between the nodes, X_(i) represents an independent and identically distributed Gaussian variable, and d₁ represents the fixed delay during data packet transmission;

The node R returning an ACK message to the node S to be synchronized after the timing response) interval w₁, and at the same time, recording a local time T_(3,i) ^((R)) when the ACK message is returned, wherein the interval w₁ depends on specific conditions of the sequence number of the data packet received by the node R in each cycle modulo i, and i≤2;

S3: the node S to be synchronized records its local time T_(4,i) ^((S)) when receiving the response message from the reference node R; based on the fact that length of an ACK data packet is usually smaller than that of a data packet in the network, and that the fixed delay is mainly influenced by the length of the data packet, here, the fixed delay d₂ during transmission of an ACK data packet is assume to be equal to the fixed delay d₁ during data packet transmission minus a constant value m, wherein, d₂=d₁−m; similarly, with the influence of the fixed delay d₂ during transmission and a random delay Y_(i) in a downlink, the following timestamp relation expression is obtained: T _(3,i) ^((R)) =α×T _(4,i)(s)θ₁₀−α×(d ₂ +Y _(i)) wherein Y_(i) is an independent and identically distributed Gaussian variable;

S4: repeating the above steps S1-S3; if

${\alpha = \frac{1}{\beta}},$ and a matrix is used to store the timestamps T_(1,i) ^((S)), T_(2,i) ^((R)), T_(3,i) ^((R)), T_(4,i) ^((S)) and different timing response intervals w_(i), of the node R, then clock synchronization parameters, i.e., the clock frequency offset α and the fixed time delay d₁ during data packet transmission, can be estimated after N cycles, and the formulas are as follows:

${\underset{\overset{\Delta}{=}R}{\underset{︸}{\begin{bmatrix} {T_{4,1} - T_{1,1} + m} \\ {T_{4,2} - T_{1,2} + m} \\ \ldots \\ {T_{4,N} - T_{1,N} + m} \end{bmatrix}}} = {{\underset{\overset{\Delta}{=}M}{\underset{︸}{\begin{bmatrix} {T_{3,1} - T_{2,1}} & 2 \\ {T_{3,2} - T_{2,2}} & 2 \\ \cdots & \cdots \\ {T_{3,N} - T_{2,N}} & 2 \end{bmatrix}}}\underset{\overset{\Delta}{=}\Theta}{\begin{bmatrix} \beta \\ d_{1} \end{bmatrix}}} + \underset{\overset{\Delta}{=}Z}{\begin{bmatrix} Z_{1} \\ Z_{2} \\ \ldots \\ Z_{N} \end{bmatrix}}}}{\hat{\Theta} = {\left( {M^{H}M} \right)^{- 1}M^{H}R}}{\hat{\alpha} = {\frac{1}{\hat{\beta}} = \frac{1}{\left\lbrack \hat{\Theta} \right\rbrack_{1}}}}{{\hat{d}}_{1} = \left\lbrack \hat{\Theta} \right\rbrack_{2}}$

wherein {circumflex over (α)} is the clock frequency offset estimator, {circumflex over (d)}₁ is the fixed time delay estimator during data packet transmission, and Z_(i)=X_(i)+Y_(i) is the independent and identically distributed Gaussian variable, i.e., Z₁: N(0, σ²).

Further, in step S2, taking the conditions that the sequence number Seq of the data packet received by the node R in each cycle modulo i with i≥2 as an example, the corresponding rules for obtaining the interval w_(i), are as follows:

-   -   When the sequence number Seq % i=0, the timing response interval         for returning ACK is w₁;     -   When the sequence number Seq % i=1, the timing response interval         for returning ACK is w₂;     -   When the sequence number Seq % i=2, the timing response interval         for returning ACK is w₃;     -   When the sequence number Seq % i=i−2, the timing response         interval for returning ACK is w_(i-1);     -   When the sequence number Seq % i=i−1, the timing response         interval for returning ACK is w₁.

The present invention has following beneficial effects:

(1) The mode of the present invention is based on an ordinary data packet transmission and ACK communication mechanism, the node to be synchronized can realize the estimation and long-term smooth tracking of the clock frequency offset and the fixed delay during the receiving and sending of an ordinary data packet, which saves the energy of resource-limited sensor nodes and meets the requirement of low power consumption of wireless sensor networks.

(2) The method of the present invention does not need dedicated synchronization messages with timestamp information for interaction during the estimation of the clock frequency offset and the fixed delay. In fact, a timestamp is a potential attack point in a time synchronization protocol, but the method for estimating clock frequency offsets provided by the present invention does not need to transmit any timestamp during implementation, thereby improving the safety of the network.

(3) In the method for estimating clock frequency offsets of industrial wireless sensor networks based on timing response provided by the present invention, a time slot template of ISA100.11a is taken as an example for explanation. The timing response interval for returning ACK defined by ISA100.11a is expanded, the receiving node adopts the policies of establishing a mapping table and conducting modulo operation with the sequence numbers to obtain two or more different values of the timing response interval according to different sequence numbers of received data packets, and the timing response intervals for returning ACK messages according to different sequence numbers are calculated. Therefore, the present invention is easy to integrate into the existing industrial wireless sensor networks with a time slot mechanism and has a good practical application value.

DESCRIPTION OF THE DRAWINGS

To enable the purpose, the technical solution and the beneficial effects of the present invention to be clearer, the present invention provides the following drawings for explanation:

FIG. 1 is a schematic diagram of a data packet exchange mechanism between synchronization nodes of the present invention;

FIG. 2 is a flow chart of a method for estimating clock frequency offsets of the present invention;

FIG. 3 is a performance comparison diagram of clock frequency offset and fixed delay estimation results of the present invention.

DETAILED DESCRIPTION OF THE INVENTION

Preferred embodiments of the present invention will be described below in detail in combination with drawings.

FIG. 1 is a schematic diagram of a data packet exchange mechanism between synchronization nodes in the method for estimating clock frequency offsets of industrial wireless sensor networks based on timing response of the present invention. As shown in FIG. 1 , in an industrial wireless sensor network, an ordinary node S is used as a node to be synchronized, a receiving node R is used as a clock source node, and two-way communication between the two nodes is carried out by a communication mechanism of one-way data packet+ACK.

In the method for estimating clock frequency offsets of industrial wireless sensor networks based on timing response of the present invention, because of no timestamp exchange, a synchronization function can be embedded in the process of receiving and sending data packets. It is assumed that the sending node S sends a data packet to the reference node R at its local time T_(1,i) ^((S)), the reference node R receives the data packet after a period of time. After the data packet message sent by the node S is received, the node R returns an ACK message to the node S to be synchronized after the timing response interval w_(i), and at the same time, records its local time T_(3,i) ^((R)) when the ACK message is returned. The timing response interval w_(i) depends on specific conditions of the sequence number of the data packet received by the node R in each cycle modulo i(i≥2), and the corresponding mapping rules are as follows: when the sequence number Seq % i=0, the timing response interval for returning ACK is w₁; when the sequence number Seq % i=1, the timing response interval for returning ACK is w₂; when the sequence number Seq % i=2, the timing response interval for returning ACK is w₃; . . . ; when Seq % i=i−2, the timing response interval for returning ACK is w_(i-1); when Seq % i=i−1, the timing response interval for returning ACK is w_(i). Then the node S records the time T_(4,i) ^((S)) when receiving the response message. The above process is repeated, and the clock frequency offset between the nodes and the fixed delay during data packet transmission can be estimated by a statistical signal processing method.

The Specific Steps are as Follows:

For the first synchronization cycle, an implementation model of T_(2.1) ^((R)) can be expressed as T _(2.1) ^((R)) =α×T _(1.1) ^((s))+θ_(t) ₀ +α×(d ₁ +X ₁)  (1)

wherein θ_(t) ₀ and a represent initial clock phase offset and frequency offset at time t₀ respectively, and the fixed delay during data packet transmission and random delay in the uplink are respectively denoted by d₁ and X₁.

Here, it is assumed that the sequence number of the first data packet for data exchange is Seg₀ and Seg₀ is an integer multiple of 3, i.e., Seq₀%3=0. After a certain interval, the node R returns an ACK message to the node S. According to the mapping relationship between the sequence number of the data packet and the timing response interval, it can be obtained that the timing response interval for returning ACK by the node R in the first cycle is w₁.

Assuming that the time when the node R returns ACK is T_(3.1) ^((R)), then: T _(3.1) ^((R)) =T _(2.1) ^((R)) +W ₁  (2)

The time T_(3.1) ^((R)) when the node R returns ACK and the time T_(4.1) ^((S)) when the node S receives ACK satisfy that: T _(3.1) ^((R)) =α×T _(4.1) ^((S))+θ₁₀−α×(d ₂ +Y ₁)  (3)

Here, the fixed delay d₂ during transmission of the ACK data packet is equal to the fixed delay d₁ during data packet transmission minus a constant value m, wherein, d₂=d₁−m, and Y₁ is a random delay in the downlink of the first cycle.

Similarly, for the second synchronization cycle, T_(2.2) ^((R)) can be expressed as T_(2.2) ^((R))=α×T_(1.2) ^((s))+θ_(t) ₀ +α×(d₁+X₂), wherein X₂ is the random delay in the uplink in the network during data packet transmission.

When the sequence number of the data packet in the second cycle is that Seg₁%3=1, it can be obtained that the interval for returning ACK is W₂ according to the mapping relationship. The time T_(3.2) ^((R)) when the node S returns ACK is: T_(3.2) ^((R))=T_(2.2) ^((R))+w₂. T_(3.2) ^((R)) and T_(4.2) ^((S)) satisfy the following relationship: T _(3.2) ^((R)) =α×T _(4.2) ^((S))+θ₁₀+α×(d ₂ +Y ₂)  (4)

After N rounds of data packet exchange, a mathematical model of the exchange process can be obtained, T _(2,i) ^((R)) =α×T _(1,i) ^((S))+θ_(t) ₀ +α×(d ₁ +x _(i))  (5) T _(3,i) ^((R)) =α×T _(4,i) ^((S))+θ₁₀−α×(d ₂ +Y _(i))  (6) w ₁∈(w ₁ ,w ₂ , . . . ,w _(i))  (7) T _(3,i) ^((R)) =T _(2,i) ^((R)) +wi  (8)

After N cycles, the sending node S can obtain a group of local timestamps {T_(1,i) ^((S)),T_(4,i) ^((S))}_(i=1) ^(N), and similarly, the node R can obtain a group of local timestamps {T_(2,i) ^((R)), T_(3,i) ^((R))}_(i=1) ^(N). Combined with the different response intervals w_(i), of the node R, the frequency offset between the nodes and the fixed delay during data packet transmission can be estimated by a statistical signal processing method. The formulas are as follows:

$\begin{matrix} {\underset{\overset{\Delta}{=}R}{\underset{︸}{\begin{bmatrix} {T_{4,1} - T_{1,1} + m} \\ {T_{4,2} - T_{1,2} + m} \\ \ldots \\ {T_{4,N} - T_{1,N} + m} \end{bmatrix}}} = {{\underset{\overset{\Delta}{=}M}{\underset{︸}{\begin{bmatrix} {T_{3,1} - T_{2,1}} & 2 \\ {T_{3,2} - T_{2,2}} & 2 \\ \cdots & \cdots \\ {T_{3,N} - T_{2,N}} & 2 \end{bmatrix}}}\underset{@\Theta}{\begin{bmatrix} \beta \\ d_{1} \end{bmatrix}}} + \underset{\overset{\Delta}{=}Z}{\begin{bmatrix} Z_{1} \\ Z_{2} \\ \ldots \\ Z_{N} \end{bmatrix}}}} & (9) \end{matrix}$ $\begin{matrix} {\hat{\Theta} = {\left( {M^{H}M} \right)^{- 1}M^{H}R}} & (10) \end{matrix}$

Thus, a clock frequency offset estimator {circumflex over (α)} of the sending node S relative to the node R and a fixed time delay estimator d₁ during data packet transmission can be obtained, wherein Z_(i)=X_(i)+Y_(i) is the independent and identically distributed Gaussian variable, i.e., Z_(i): N(0, σ²), and N is the number of synchronization cycles between the two nodes.

$\begin{matrix} {\hat{\alpha} = {\frac{1}{\hat{\beta}} = \frac{1}{\left\lbrack \hat{\Theta} \right\rbrack_{1}}}} & (11) \end{matrix}$ $\begin{matrix} {{\hat{d}}_{1} = \left\lbrack \hat{\Theta} \right\rbrack_{2}} & (12) \end{matrix}$

In order to verify the effectiveness of the method for estimating clock frequency offsets of industrial wireless sensor networks based on timing response provided by the present invention, a Cramer-Rao Lower Bound (CRLB) is calculated.

$\begin{matrix} {{{Var}\left( \hat{\beta} \right)} \geq \frac{N\sigma^{2}}{\begin{matrix} {{N\alpha^{2}{\sum\limits_{i = 1}^{N}\left\lbrack {\left( {T_{4,i} - T_{1,i} - {2d_{1}} + m} \right)^{2} + \delta^{2}} \right\rbrack}} -} \\ {\alpha^{2}\left\lbrack {\sum\limits_{i = 1}^{N}\left( {T_{4,i} - T_{1,i} - {2d_{1}} + m} \right)} \right\rbrack}^{2} \end{matrix}}} & (13) \end{matrix}$ $\begin{matrix} {{{Var}\left( {\hat{d}}_{1} \right)} \geq \frac{\sigma^{2}{\sum\limits_{i = 1}^{N}\left\lbrack {\left( {T_{4,i} - T_{1,i} - {2d_{1}} + m} \right)^{2} + \delta^{2}} \right\rbrack}}{\begin{matrix} {{4N{\sum\limits_{i = 1}^{N}\left\lbrack {\left( {T_{4,i} - T_{1,i} - {2d_{1}} + m} \right)^{2} + \delta^{2}} \right\rbrack}} -} \\ {4\left\lbrack {\sum\limits_{i = 1}^{N}\left( {T_{4,i} - T_{1,i} - {2d_{1}} + m} \right)} \right\rbrack}^{2} \end{matrix}}} & (14) \end{matrix}$

Here, β is the inverse of the frequency offset α to be estimated, i.e.,

${\beta = \frac{1}{\alpha}},$ and d₁ is the fixed delay during data packet transmission. The CRLB of a more general function α=g (β) of β can be obtained according to parameter transformation when the CRLB of β is known. The specific transformation formula is as follows:

$\begin{matrix} {{{Var}\left( \hat{\alpha} \right)} \geq {\left( \frac{\partial g}{\partial\beta} \right)^{2}{{Var}\left( \hat{\beta} \right)}}} & (15) \end{matrix}$

Thus, the CRLB of the frequency offset α is:

$\begin{matrix} {{{Var}\left( \hat{\alpha} \right)} \geq {\left( {- \frac{1}{\beta}} \right)^{2}{{Var}\left( \hat{\beta} \right)}} \geq \frac{N\sigma^{2}\alpha^{2}}{\begin{matrix} {{N{\sum\limits_{i = 1}^{N}\left\lbrack {\left( {T_{4,i} - T_{1,i} - {2d_{1}} + m} \right)^{2} + \delta^{2}} \right\rbrack}} -} \\ \left\lbrack {\sum\limits_{i = 1}^{N}\left( {T_{4,i} - T_{1,i} - {2d_{1}} + m} \right)} \right\rbrack^{2} \end{matrix}}} & (16) \end{matrix}$

Embodiment

FIG. 2 is a flow chart of a method for estimating clock frequency offsets based on timing response of the present invention. As shown in FIG. 2 , the method for estimating clock frequency offsets specifically comprises the following steps:

-   -   S1: starting a synchronization process.     -   S2: a sending node S sending a data packet with a sequence         number of Seq to a receiving node R, and recording a sending         time T_(1,i) ^((s)).     -   S3: the receiving node R receiving the data packet, and         recording a receiving time T_(2,i) ^((R)).     -   S4: the receiving node R obtaining a timing response interval         w_(i), required to wait for returning ACK according to the         sequence number of the received data packet by a calculation         rule Seq % i     -   S5: the receiving node R returning an ACK response after the         interval w_(i), and recording a corresponding sending time         T_(3,i) ^((R)).     -   S6: the node S receiving the response ACK message from the node         R, and recording a corresponding receiving time T_(4,i) ^((s)).     -   S7-S9: determining whether the number of synchronization cycles         reaches a set value N; if yes, estimating the frequency offset         and the fixed delay between the nodes; otherwise, i=i+1,         entering step S2 and continuing to repeat the data packet         sending and receiving process.     -   S10: the node S to be synchronized estimating clock         synchronization parameters, i.e., the frequency offset and the         fixed delay, which lays a foundation for time synchronization of         an industrial wireless sensor network.     -   S11: ending the synchronization process.

FIG. 3 is a performance comparison diagram of clock frequency offset and fixed time delay estimation results obtained by the method for estimating clock frequency offsets of the present invention compared with corresponding CRLBs. It can be known from FIG. 3 that mean square errors of both estimators are reduced with the increase of the number of observations; each mean square error curve is roughly coincident with the corresponding CRLB thereof, the effectiveness of the estimators {circumflex over (α)} and {circumflex over (d)}₁ are verified by simulation results, and the estimated performance is close to optimal estimate.

Finally, it should be noted that the above preferred embodiments are only used for describing, rather than limiting the technical solution of the present invention. Although the present invention is already described in detail through the above preferred embodiments, those skilled in the art shall understand that various changes in form and detail can be made to the present invention without departing from the scope defined by claims of the present invention. 

The invention claimed is:
 1. A method for estimating clock frequency offsets of industrial wireless sensor networks based on timing response, characterized in that: in a wireless sensor network, when an arbitrary node S to be synchronized in the network need to realize synchronization with a reference node R, two-way communication between the nodes is carried out in a communication mode of one-way data packet+ACK, and estimation of time synchronization parameters does not depend on timestamp information; because no timestamp exchange is required, synchronization function can be embedded into an existing data exchange process; after a data packet message sent by a sending node S is received by the reference node R, two or more different values of a timing response interval are obtained according to a sequence number (Seq) of a received data packet by adopting corresponding rules; and the method specifically comprises the following steps: S1: estimation of a clock frequency offset is performed along with data packet sending and receiving of the nodes, assuming that the node S to be synchronized sends a data packet to the reference node R at a local time T_(1,i) ^((S)), and records the sending time T_(1,i) ^((S)); S2: as crystal oscillators of the node R and the node S have different frequencies, if f_(R) represents a crystal oscillator frequency of the node R, and f_(s) represents a crystal oscillator frequency of the node S, the reference node R records a local time T_(2,i) ^((R)) when receiving a data frame sent by the node S; as influenced by a fixed delay d₁ during data packet transmission and a random delay X₁ in an uplink, it can be obtained that T _(2,i) ^((R)) =α×T _(1,i) ^((S))+θ_(t0)+α×(d ₁ +x _(i)) wherein $\alpha = \frac{f_{R}}{f_{S}}$ represents a clock frequency offset of the node S relative to the node R, θ_(t) ₀ represents an initial phase offset between the nodes, X_(i) represents an independent and identically distributed Gaussian variable, and d₁ represents the fixed delay during data packet transmission; the node R returning an ACK message to the node S to be synchronized after a timing response interval w_(i), and records a local time T_(3,i) ^((R)) when the ACK message is returned, wherein the interval w_(i) is obtained according to the sequence number of the data packet received by the node R in each cycle and the corresponding rules for timing response; S3: the node S to be synchronized records a local time T_(4,i) ^((S)) when receiving a response message from the reference node R; assuming that a fixed delay d₂ during transmission of an ACK data packet is equal to the fixed time delay d₁ during data packet transmission minus a constant value m, wherein, d₂=d₁−m; similarly, with the influence of the fixed time delay d₂ during transmission and a random delay y in a downlink, the following timestamp relational expression is obtained: T _(3,i) ^((R)) =α×T _(4,i) ^((S))+θ_(t0)−α×(d ₂ +Y _(i)) wherein Y₁ is an independent and identically distributed Gaussian variable; S4: repeating the above steps S1-S3; if ${\beta = \frac{1}{\alpha}},$ and a matrix is used to store the timestamps T_(1,i) ^((S)), T_(2,i) ^((R)), T_(3,i) ^((R)), T_(4,i) ^((S)) and different timing response intervals w_(i) of the node R, then clock synchronization parameters, i.e., the clock frequency offset α and the fixed time delay d₁ during data packet transmission, can be estimated after N cycles, and the formulas are as follows: ${\underset{\overset{\Delta}{=}R}{\underset{︸}{\begin{bmatrix} {T_{4,1} - T_{1,1} + m} \\ {T_{4,2} - T_{1,2} + m} \\ \ldots \\ {T_{4,N} - T_{1,N} + m} \end{bmatrix}}} = {{\underset{\overset{\Delta}{=}M}{\underset{︸}{\begin{bmatrix} {T_{3,1} - T_{2,1}} & 2 \\ {T_{3,2} - T_{2,2}} & 2 \\ \cdots & \cdots \\ {T_{3,N} - T_{2,N}} & 2 \end{bmatrix}}}\underset{\overset{\Delta}{=}\Theta}{\begin{bmatrix} \beta \\ d_{1} \end{bmatrix}}} + \underset{\overset{\Delta}{=}Z}{\begin{bmatrix} Z_{1} \\ Z_{2} \\ \ldots \\ Z_{N} \end{bmatrix}}}}{\hat{\Theta} = {\left( {M^{H}M} \right)^{- 1}M^{H}R}}{\hat{\alpha} = {\frac{1}{\hat{\beta}} = \frac{1}{\left\lbrack \hat{\Theta} \right\rbrack_{1}}}}{{\hat{d}}_{1} = \left\lbrack \hat{\Theta} \right\rbrack_{2}}$ wherein {circumflex over (α)} is a clock frequency offset estimator, {circumflex over (d)}₁ is a fixed delay estimator during data packet transmission, and Z_(i)=X_(i)+Y_(i) is the independent and identically distributed \ Gaussian variable, i.e., Z_(i):N(0, σ²).
 2. The method for estimating clock frequency offsets of industrial wireless sensor networks based on timing response as claimed in claim 1, characterized in that: in step S2, two or more different values of the interval w_(i) are obtained according to the corresponding rules; in the conditions of the sequence number Seq of the data packet received by the node R in each cycle modulo i with i≥2, the corresponding rules are as follows: when the sequence number Seq % i=0, the timing response interval for returning ACK is w₁; when the sequence number Seq % i=1, the timing response interval for returning ACK is w₂; when the sequence number Seq % i=2, the timing response interval for returning ACK is w₃; when the sequence number Seq % i=i−2, the timing response interval for returning ACK is w_(i-1); when the sequence number Seq % i=i−1, the timing response interval for returning ACK is w_(i). 